package com.quyou.funtour.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.quyou.funtour.bean.ResultInfo;
import com.quyou.funtour.po.ActivityPo;
import com.quyou.funtour.po.UserParticipateActivityPo;
import com.quyou.funtour.po.UserPo;
import com.quyou.funtour.vo.ActivityVo;

import java.util.List;

public interface ActivityService extends IService<ActivityPo> {

    ActivityPo getActivityById(String id);

    ResultInfo makeAnAppointment(UserParticipateActivityPo userParticipateActivityPo,UserPo userPo);

    List<ActivityVo> getyuyueIngActivity(String uid);

    List<ActivityVo> getParticipateActivity(String uid);

    Page<ActivityPo> ctivityList(Integer current, Integer size);

    /**
     * 根据活动id获取活动的图片
     * @param id
     * @return
     */
    List<String> getActivityImgById(String id);

    Boolean addActivity(ActivityPo activityPo);

}
